博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jquery ajax 局部table 刷新技术
阅读量:4687 次
发布时间:2019-06-09

本文共 2580 字,大约阅读时间需要 8 分钟。

点击查询:

 

 

下面先上html页面:

 

Examples

约见列表

编号 约见标题 姓名 所属地区 创建时间 操作
{$vo.userid} {$vo.title} {$vo.username} {$vo.name} {$vo.pubtime|date='Y-m-d',###} 删除
{$page}

再上jquery代码:

 

最后上php代码:

 

public function search()    {       $title=$_POST['title'];       if($title)       {            $moden=M('meet');            import("ORG.Util.Page");            $count= $moden->where("title='$title'")->count();            $Page= new Page($count,17);            $show= $Page->show();            $sql="select userid,username,city_id,name ,title,pubtime from meet,region where title='$title' and id=city_id order by userid desc limit $Page->firstRow, $Page->listRows";            //$sql="select userid,username,city_id,name ,title,age,height,sex,telephone,education_id,professional,month_salary,weixin,pubtime from meet,region where title='$title' and id=city_id order by userid desc limit $Page->firstRow, $Page->listRows";            $rs=$moden->query($sql);            if($rs)            {                foreach ($rs as $k => $v)                {                    $rs[$k]['sex']=$v['sex']==1?'女':'男';                    $rs[$k]['pubtime']= date('Y-m-d', $rs[$k]['pubtime']);                }                $json = array(                    'page' => $show,                    'data' => $rs                );                echo json_encode($json);            }else            {                echo '0';            }       }            }

 

转载于:https://www.cnblogs.com/hnbiao/p/jquery.html

你可能感兴趣的文章
订单逻辑实现
查看>>
购物车实现逻辑
查看>>
图片上传
查看>>
ButterKinfe使用
查看>>
GreenDao
查看>>
[转]ROS 不能再详细的安装教程
查看>>
vmstat命令实战详解
查看>>
java成神之——properties,lambda表达式,序列化
查看>>
BZOJ4127Abs——树链剖分+线段树
查看>>
PyQt4测试安装ok的程序
查看>>
(ios开发学习笔记四)利用toolbar实现多窗体跳转
查看>>
444
查看>>
Django(一):web服务端实例
查看>>
CSS3background新增属性
查看>>
C语言的指针类型详细解析
查看>>
高仿QQ消息列表左滑功能
查看>>
Origin 2019b 合法获取与使用介绍——正版软件&最新最实用教程分享
查看>>
nyoj 求余数
查看>>
用dependency:tree查看maven引入jar包的传递依赖
查看>>
javascript Date日期类对象的使用
查看>>